package com.tang.objectOriented.basics.thiss;

public class This01 {
    public static void main(String[] args){
        Dogs d=new Dogs("dog",1);
        d.info();
        Dogs d1=new Dogs("dog1",11);
        d1.info();
    }

}


class Dogs{
    public String name;
    public int age;

    public Dogs(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void info(){
        System.out.println(this.name +"\t"+ this.age);
        System.out.println("Current object\t"+this.hashCode());
    }
}